<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${ctx}/css/lipe.css"/>
<link rel="stylesheet" href="${ctx}/js/slide/slide.css" />
<%-- <%@ include file="/view/common/header.jsp"%>  --%>
</head>
<body>
    <div id="content">
    <section class="container img-list-box">
        <!-- //step-->
        <!-- info-->
        <div class="p-info-lg">
            <div class="img-lg-box">
                 <c:if test="${empty customer.logo}">  
               			  <img src="${ctx}/images/icon_head_big.png" alt="" style="max-width: 220px;">
                 </c:if>
                 <c:if test="${not empty customer.logo}">
                         <img src="${sysparam.IMAGE_PREFIX_URL}/${customer.logo}" alt="" style="max-width: 220px;"/>
                 </c:if>
            </div>
            <div class="text-info-mo">
                <h4>${customer.realname}</h4>
                <h4>${customer.orgname}</h4>
                <div class="info">
                    ${customer.profile}
                </div>
            </div>
        </div>


        <c:forEach var="item"  items="${list}"  varStatus="status">
            <div   class="slide-lg-box">
                <ul class="slide-lg-m">

                    <c:forEach var="picitem"  items="${item.picList}"  varStatus="picstatus">
                        <li>
                            <img src="${sysparam.IMAGE_PREFIX_URL}/${picitem}?imageView2/1/w/980/h/600" alt="" style="width: 980px;height: 600px;"/>
                            <div class="img-info">
			                        <span class="k-label">
			                            <i class="icon-p icon-size-white"></i> ${item.roomsize }m<sup>2</sup>
			                        </span>
			                        <span>
			                            <i class="icon-p ico-location-white"></i> ${item.address}
			                        </span>
                            </div>
                        </li>
                    </c:forEach>
                </ul>
            </div>
        </c:forEach>
        
        <div id="dlg-buttons">
				<input type="button" value="通过审核" onclick="doEx();" ></a>
		</div>
        <!--//move info 1-->
    </section>
    
    </div> 
    
    	
      <script src="${ctx}/js/jquery.min.js"></script>
    <script src="${ctx}/js/validate/jquery.validate.min.js"></script>
    <script src="${ctx}/js/validate/messages_zh.js"></script>
    <script src="${ctx}/js/jquery.slide.1.0.0.js"></script>
    <script src="${ctx}/js/init.js"></script>
    <script src="${ctx}/js/jqPaginator.js"></script>
    <script src="${ctx}/js/jquery.paginate.js"></script>
    <script src="${ctx}/js/jquery.dialog.js"></script>
    <script src="${ctx}/js/temp.js"></script>
    <script type="text/javascript" src="${ctx}/js/slide/jquery.slidePic-1.0.0.js"></script>
    <script src="${ctx}/js/lipe.fn.js"></script>
    <script src="${ctx}/js/page.init.js"></script>
    <script>
		function doEx(){
			 $.ajax({
				 url:'${ctx}/customer/doEx.do' ,
				 data:{id: '${customer.customerid}'} ,
				 success:function (res){
					 console.log(res);
					 if(res.code == '0000'){
						 alert('成功');
					 }else{
						 alert(res.msg);
					 }
				 }
			 });
		}     	
        $(function () {
            $("#slidePic1").slidePic();
            $("#slidePic2").slidePic({
                autoTime:7000
            });
            $("#slidePic3").slidePic({
                autoTime:8000
            });
        });
    </script>
</body>
</html>